package _0807_1;

public class SwimTest {
    public static void main(String[] args) {
        Dog dog = new Dog("旺财", 4, "白色");
        dog.swim();
        dog.drink();
        dog.lookHome();
        dog.eat();

        Chicken chicken = new Chicken("小鸡", 1, "黄色");
        chicken.drink();
        chicken.eat();
        chicken.layEgg();

        Fish fish = new Fish("小鱼", 1, "蓝色");
        fish.drink();
        fish.eat();
        fish.swim();
    }
}
